package com.cryptoneedle.center.doris.domain.metadata;

import com.cryptoneedle.center.common.key.TableKey;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>description: Doris-元数据-Table </p>
 * <p>
 * 数据来源：SHOW FULL TABLES FROM internal.xxx;
 *
 * @author CryptoNeedle
 * @date 2025-09-25
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString
public class DorisMetadataTable {

    private String catalogName;

    private String databaseName;

    // <db_name>所在数据库下面所有的表以及视图
    private String tableName;

    private String tableType;

    private String storageFormat;

    private String invertedIndexStorageFormat;

    public String getKey() {
        return new TableKey(this.catalogName, this.databaseName, this.tableName).toString();
    }
}